package com.service.impl;

import com.dao.UserMapper;
import com.github.pagehelper.PageHelper;
import com.model.User;
import com.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * author 张新林
 * 时间 2019/1/20 18:09
 * 描述
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;


    @Override
    public List<User> findUser(int pageNum,int pageSize) {
        PageHelper.startPage(pageNum, pageSize);
        return userMapper.selectByExample(null);
    }
}
